package day10;

import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;

public class Hashmap1 {
	public static void main(String[] args) {
		HashMap <String,String> map =new HashMap<>();
		map.put("dashadiao", "dashazi");
		map.put("zhu", "wfff");
		Set<Entry<String, String>> entrySet = map.entrySet();
		for (Entry<String, String> entry : entrySet) {
			String key = entry.getKey();
			String value = entry.getValue();
			System.out.println(value+key);
			
		}
		Set<String> keySet = map.keySet();
		for (String string : keySet) {
			String key = string;
			String value = map.get(string);
			System.out.println(key+value);
		}
	}
	

}
